package com.yuqiao.read.design.factory2;

public class NYPizzaStore extends PizzaStore {
    @Override
    Pizza createPizza(String type) {
        if("cheese".equals(type)){
            return new NYPizza();
        }else{
            return  null;
        }
    }
}
